package com.ericpol.selenium;

import org.openqa.selenium.By;

public class LoginPage extends Page {
	
	public LoginPage() {
		open("http://demo.bananascrum.com/login");	
	}

	public MainPage logIn(String username, String pass) {
		insertText(By.id("login"), username);
		insertText(By.id("password"), pass);
		click(By.name("commit"));
		MainPage stronaGlowna = new MainPage();
		return stronaGlowna;

	}

}
